set iverilog_path=C:\iverilog\bin;
set gtkwave_path=C:\iverilog\gtkwave\bin;
set path=%iverilog_path%%gtkwave_path%%path%

set source_c=%1
set source_module=%2

iverilog-vpi --name=output/%source_c% examples/%source_c%.c
del %source_c%.o

iverilog -o output/%source_module%.vvp -y examples/ -I examples/ examples/%source_module%.v
vvp -M output/ -m %source_c% -n output/%source_module%.vvp
